package com.luoqian.demo03;

public class User extends Person{
    private String idCard;

    public String age;

    public static String salary;

    private void jump(){
        System.out.println("jump。。。");
    }

    public User() {
    }

    public User(String idCard) {
        this.idCard = idCard;
    }

    private User(String idCard, String age) {
        this.idCard = idCard;
        this.age = age;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getAge() {
        return age;
    }

    private void setAge(String age) {
        this.age = age;
    }

    public  static void say(String msg){
        System.out.println("msg ==>" +msg);

    }

    @Override
    public String toString() {
        return "User{" +
                "idCard='" + idCard + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
